#所有配置写在本文件中
#包的安装：setting-Project-Inter-+Flask-Mig/Flask-SQLA/PyMy/SQLA
#加密盐
SECRET_KEY = 'assdasdasdasdasd'

#配置数据库
#mysql所在主机名
HOSTNAME = "127.0.0.1"
#MySQL监听的端口号
PORT = 3306
#MySQL用户名
USERNAME = "root"
PASSWORD = "123456"
#数据库名称
DATABASE = "yigongoa"

DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8mb4'.format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI
#邮箱配置
#cndqgijsrnkvebad
MAIL_SERVER = "smtp.qq.com"
MAIL_PORT =465
MAIL_USE_SSL = True
MAIL_USERNAME = "2163769010@qq.com"
MAIL_PASSWORD = "cndqgijsrnkvebad"
MAIL_DEFAULT_SENDER = "2163769010@qq.com"